package com.framework.model.system;

import com.framework.common.model.validation.ValidationGroup;
import com.framework.common.util.other.NumeralUtil;
import com.framework.model.base.BaseModel;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 龘鵺
 * @version 1.0
 * @className com.framework.model.system
 * @description 角色菜单关联实体类
 * @datetime 2019-01-09 11:11:11
 */
public class SystemRoleMenu extends BaseModel implements Serializable {
    private static final long serialVersionUID = -1L;
    /**
     * 角色编号
     */
    @NotNull(message = "请选择角色", groups = {ValidationGroup.formEdit.class, ValidationGroup.formAdd.class, ValidationGroup.formOther.class})
    @Min(value = NumeralUtil.POSITIVE_ONE, message = "错误角色", groups = {ValidationGroup.formEdit.class, ValidationGroup.formAdd.class, ValidationGroup.formOther.class})
    private Long roleId;
    /**
     * 菜单编号
     */
    @Min(value = NumeralUtil.POSITIVE_ONE, message = "错误菜单", groups = {ValidationGroup.formEdit.class, ValidationGroup.formAdd.class})
    private Long menuId;

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

}